package com.ygsoft.activiti.model;

import org.activiti.engine.task.Task;

import java.util.Date;

/**
 * 用户Dao
 *
 * @author zhx
 * @create 2017-11-08 14:21
 **/
public class MyTask {
    private String taskId;
    private String taskName;
    private Date startTime;
    private String startMan;
    private String processInstanceId;
    private String bussinessId;
    private String bussinessKey;

    public MyTask(){

    }
    public MyTask(Task task){
        this.taskId = task.getId();
        this.startTime = task.getCreateTime();
        this.taskName = task.getName();
        this.processInstanceId = task.getProcessDefinitionId();
    }

    public String getBussinessKey() {
        return bussinessKey;
    }

    public void setBussinessKey(String bussinessKey) {
        this.bussinessKey = bussinessKey;
    }

    public String getBussinessId() {
        return bussinessId;
    }

    public void setBussinessId(String bussinessId) {
        this.bussinessId = bussinessId;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getStartMan() {
        return startMan;
    }

    public void setStartMan(String startMan) {
        this.startMan = startMan;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }
}
